<template>
  <div class="mask" v-show="player.showBag" />
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState("map", ["player"]),
  },
};
</script>

<style scoped>
.mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
}
</style>